package Web;

import java.io.IOException;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author wuhan
 * @date 2019/10/21 16:37
 */
public class ServerDemoBrowser {
    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(11001);
        Socket s = ss.accept();
        System.out.println(s.getInetAddress().getHostAddress());
        PrintWriter out = new PrintWriter(s.getOutputStream(),true);
        out.println("<font color='red' size='7' >Hello</font>");
        s.close();
        ss.close();
    }
}
